 
-----------------------------
Generating Binomial N samples
p =  0.001 N =  100
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 15:17:26 EDT 2014
869735624
  
[1] 0.001
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] -0.0001056000 -0.0001072000 -0.0001182000 -0.0001713094
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.0010560000 -0.0009754322 -0.0009045674 -0.0009777079
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -1.043883e-17 -8.609115e-05 -5.758695e-05 -8.795664e-05
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] -0.0007833590 -0.0004407046 -0.0005019917
                         test   P.value KS.test
1                  Chi Square 0.3011352  Passed
2            Likelihood Ratio 0.3011352  Passed
3               Freeman-Tukey 0.8801760  Passed
4 Power Divergence (lambda=2) 0.2673323  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.001 N =  100
 
[1] 0.001
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1]  0.0000610000  0.0000390000 -0.0000452000 -0.0003803094
[1] "Relative difference of empirical moments from theoretical ones:"
[1]  0.0006100000  0.0003548681 -0.0003459090 -0.0021705261
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1]  6.765935e-18  2.679628e-05 -7.335660e-05 -3.844446e-04

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0004, p-value = 0.3686
alternative hypothesis: two-sided

